package com.yang.yangmusic.mapper;

import com.yang.yangmusic.dto.UserCreateRequest;
import com.yang.yangmusic.dto.UserDto;
import com.yang.yangmusic.dto.UserUpdateRequest;
import com.yang.yangmusic.entity.User;
import com.yang.yangmusic.vo.UserVo;
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;
@Mapper(componentModel = "spring")
public interface UserMapper {
   UserDto toDto(User user);

   UserVo toVo(UserDto userDto);

   User createEntity(UserCreateRequest userCreateRequest);

   User updateEntity(@MappingTarget User user, UserUpdateRequest userUpdateRequest);
}
